package com.heima.model.behavior.pojos;

import lombok.Data;

import java.io.Serializable;

@Data
public class Behavior implements Serializable {

//    文章id
    private Long articleId;

//    作者id
    private Integer authorId;

//    点赞
    private Boolean islike;

//    不喜欢
    private Boolean isunlike;

//    收藏
    private Boolean iscollection;

//    阅读次数
    private Integer count;

    public void check(){

        setIscollection(false);
        setIslike(false);
        setIsunlike(false);

    }








}
